package com.tyc.kafka.common;

import lombok.extern.slf4j.Slf4j;
import org.apache.logging.log4j.MarkerManager;
import org.apache.logging.slf4j.Log4jMarker;

/**
 * 用于打印需要入库的日志数据
 *
 * @author tyc
 * @version 1.0
 * @date 2021-10-28 14:44:35
 */
@Slf4j(topic = "data")
public class LogData {
    public static Log4jMarker marker = new Log4jMarker(MarkerManager.getMarker("DATA"));


    public static void record(String msg){
        log.info(marker,"{}",msg);
    }
}
